package com.shd.edanpei.bean;

import com.shd.edanpei.common.Constant;
import com.shd.edanpei.util.DateUtils;

/**
 * Created by mc on 2018/11/21.
 * yang-wen-wen
 */

public class TeamModel {

    /**
     * createTime : 1542783447955
     * isBoss : false
     * parantId : 1
     * teamCode : OIR11203
     * teamId : 9
     * teamName : 爱拼才会赢
     * userId : 14
     */

    private long createTime;
    private boolean isBoss;
    private int parantId;
    private String teamCode;
    private int teamId;
    private String teamName;
    private int userId;
    private String teamPic;
    private String totalPerformance;//业绩总额
    private String rebateAmount;//返利总额
    private String ordersNum;//订单数
    private String teamNum;//团队人数
    private String userName;//业务员名字
    private String avatarUrl;//业务员头像
    private String performanceTotal;//业务员总绩效
    private String rebateAmountTotal;//业务员返利金额
    private String orderNum;//业务员订单数
    private int currentState;




    public StringBuilder getCreateTime() {
        return new StringBuilder().append("入团时间：").append(DateUtils.formatTime(createTime, Constant.Time.YYYY_MM_DD_HH_MM_SS.getTime()));
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }

    public boolean isIsBoss() {
        return isBoss;
    }

    public void setIsBoss(boolean isBoss) {
        this.isBoss = isBoss;
    }

    public int getParantId() {
        return parantId;
    }

    public void setParantId(int parantId) {
        this.parantId = parantId;
    }

    public String getTeamCode() {
        return teamCode;
    }

    public void setTeamCode(String teamCode) {
        this.teamCode = teamCode;
    }

    public int getTeamId() {
        return teamId;
    }

    public void setTeamId(int teamId) {
        this.teamId = teamId;
    }

    public String getTeamName() {
        return teamName;
    }

    public void setTeamName(String teamName) {
        this.teamName = teamName;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getTeamPic() {
        return teamPic;
    }


    public boolean isBoss() {
        return isBoss;
    }

    public String getTotalPerformance() {
        return totalPerformance;
    }

    public String getRebateAmount() {
        return rebateAmount;
    }

    public String getOrdersNum() {
        return ordersNum == null ? "0" : ordersNum;
    }

    public String getTeamNum() {
        return teamNum;
    }

    public String getUserName() {
        return userName;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public String getPerformanceTotal() {
        return performanceTotal;
    }

    public String getRebateAmountTotal() {
        return rebateAmountTotal;
    }

    public String getOrderNum() {
        return orderNum;
    }

    public int getCurrentState() {
        return currentState;
    }

    public void setCurrentState(int currentState) {
        this.currentState = currentState;
    }
}
